import sys
sys.path.append("/home/thomas/SpyderProjects/")
sys.path.append("/home/thomas/SpyderProjects/pycalendar/")

#import base class HolidayProfile and constants from subdirectory and hide it to abstract user interface from foler and file structure
from  pycalendar.holidayprofiles.holidayprofile import HolidayProfile
from  pycalendar.holidayprofiles.holidayprofile import Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
from  pycalendar.holidayprofiles.holidayprofile import January, February, March,April, May, June, July, August, September, October, November, December
from  pycalendar.holidayprofiles.holidayprofile import dayoffset

from pycalendar.holidayprofiles.exchanges import *
from pycalendar.holidayprofiles.countries import *
from pycalendar.holidayprofiles.general import *


print __path__ 

from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)

print __path__

#make this file invisible so that user can only import from here
#del pycalendar.holidayprofiles.holidayprofile
#del pycalendar.holidayprofiles.test_holidayprofile

#make this 
__all__ = ["HolidayProfile", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", "January", "February", "March",
            "April", "May", "June", "July", "August", "September", "October", "November", "December", "dayoffset"]

def holidayprofiles():
    """Returns a list of all available holiday profiles in the subdirectories.

    >>> holidayprofiles() 
    """
    #profiledict = {}
    return {profile.__name__ : profile.__module__ for profile in HolidayProfile.__subclasses__()}
    
if __name__ == "__main__" :
    #module_logger.info('Running {}'.format(__name__))
    import doctest
    doctest.testmod(verbose=True)

